# cd /tmp
# tar -xzf ~/.cabal/packages/hackage.haskell.org/$packageName/$packageVersion/$packageName-$packageVersion.tar.gz
# cd $packageName-$packageVersion
cabal clean
cabal configure
# requires a rather new haddock (I used 2.8.1)
cabal haddock --hyperlink-source --css=public/ocean.css

cabal install --reinstall --disable-documentation

# cd ~/.cabal/share/doc/$packageName-$packageVersion/html/src
# ln -s ~/.cabal/share/hscolour-1.17/hscolour.css


